package com.sgcc.system.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.sgcc.common.core.constant.ServiceNameConstants;
import com.sgcc.common.core.web.domain.AjaxResult;
import com.sgcc.system.api.domain.OAnomalyInfo;
import com.sgcc.system.api.factory.RemoteOAnomalyInfoFallbackFactory;

/**
 * 异常监控
 *
 * @author sgcc
 */
@FeignClient(contextId = "remoteOAnomalyInfoService", value = ServiceNameConstants.ACTIVITI_SERVICE, fallbackFactory = RemoteOAnomalyInfoFallbackFactory.class)
public interface RemoteOAnomalyInfoService
{
    /**
     * 插入
     *
     * @param oAnomalyInfo 异常监控
     * @return 结果
     */
    @PostMapping(value = "/abnormal/add")
    public AjaxResult addAdmin(@RequestBody OAnomalyInfo oAnomalyInfo);

    @PostMapping(value = "/abnormal/addProcess")
	public AjaxResult addAdminProcess(@RequestBody  OAnomalyInfo anomalyInfo);


    @GetMapping(value = "/anomalystat/updateOAnomalyStatTask")
    public AjaxResult updateOAnomalyStatTask();
}
